<?php

namespace Database\Seeders;

use App\Models\User;
use Faker\Factory;
use Illuminate\Database\Seeder;

class UserSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        User::factory(10)->create();
        $user = User::where('id', 1)->first();
        $user->email = "1107173365@qq.com";
        $user->password = bcrypt("admin888");
        $user->name = "张先生";
        $user->is_admin = true;
        $user->active = true;
        $user->save();
    }
}
